import request from '@/utils/request'


export function repairApiList(query) {
  return request({
    url: '/hawk-eye/repair/page',
    method: 'get',
    params: query
  })
}


export function repairApiDetail(id) {
  return request({
    url: '/hawk-eye/repair/detail/' + id,
    method: 'get'
  })
}

export function addRepairApi(data) {
  return request({
    url: '/hawk-eye/repair/save',
    method: 'post',
    data: data
  })
}

export function updateRepairApi(data) {
  return request({
    url: '/hawk-eye/repair/update',
    method: 'put',
    data: data
  })
}

export function removeRepairApi(id) {
  return request({
    url: '/hawk-eye/repair/remove/' + id,
    method: 'delete'
  })
}

export function getExecuteRepairParams(id) {
  return request({
    url: '/hawk-eye/repair/execute-repair-params/' + id,
    method: 'get'
  })
}

export function executeRepairApi(data) {
  return request({
    url: '/hawk-eye/repair/execute-repair',
    method: 'post',
    data: data
  })
}

export function repairLogPageList(query) {
  return request({
    url: '/hawk-eye/repair/repair-log-list',
    method: 'get',
    params: query
  })
}
